From 5e5a5929e451cef2595baf78554e85b81244c730 Mon Sep 17 00:00:00 2001 From: "Mr. E23" Date: Fri, 28 Nov 2003 08:13:52 +0000 Subject: [PATCH] Removed unnecessary clearing of linkscc --- includes/Article.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 1cb0dd714c..46dc201574 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -494,21 +494,6 @@ class Article { "WHERE rc_cur_id=" . $this->getID(); wfQuery( $sql, DB_WRITE, $fname ); - global $wgEnablePersistentLC; - if ( $wgEnablePersistentLC ) { - - // Purge link cache for this page - $pageid=$this->getID(); - wfQuery("DELETE FROM linkscc WHERE lcc_pageid='{$pageid}'", DB_WRITE); - - // This next query just makes sure stub colored links to this page - // are updated correctly (I think). If performance is more important - // than real-time updating of stub links, we really should skip - // this query. - wfQuery("DELETE linkscc FROM linkscc,links ". - "WHERE lcc_title=links.l_from AND l_to={$pageid}", DB_WRITE); - } - } if( $wgDBtransactions ) { $sql = "COMMIT"; -- 2.20.1